//
//  MineViewController.swift
//  SwiftProject
//
//  Created by HBY on 2021/5/6.
//

import UIKit

class MineViewController: UIViewController {
    var headUrl:String = ""

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.isNavigationBarHidden = true
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        self.navigationController?.isNavigationBarHidden = false
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.headUrl = ""
        // Do any additional setup after loading the view.
    }
    
    @IBAction func onclick_set() {
        let vc = SetViewController()
        vc.block = {(_ value:String) -> Void in
            print("输入值为：\(value)")
        }
        vc.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
    @IBAction func onclick_pay() {
        let vc = PayViewController()
        vc.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(vc, animated: true)
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
